import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import fastclick from 'fastclick'
import Vuelazyload from 'vue-lazyload'

import toast from 'components/common/toast'

Vue.config.productionTip = false
// 解决移动端300ms延迟
fastclick.attach(document.body)
// 图片懒加载
Vue.use(Vuelazyload,{
	loading: require('./assets/img/common/placeholder.png')
})
// 安装事件总线
Vue.prototype.$bus = new Vue()
// 安装toast插件
Vue.use(toast)
new Vue({
	router,
	store,
  render: h => h(App)
}).$mount('#app')
